<template>
  <ContentWrap>
    <el-tabs v-model="activeName" tab-position="top" :before-leave="handleTabChange">
      <el-tab-pane label="标签配置" :name="1"></el-tab-pane>
      <el-tab-pane label="客户级别配置" :name="2"></el-tab-pane>
      <el-tab-pane label="跟进类型配置" :name="3"></el-tab-pane>
      <el-tab-pane label="线索跟进阶段" :name="4"></el-tab-pane>
      <TagConfig v-if="activeName == 1" />
      <LevelConfig v-if="activeName == 2" />
      <FollowTypeConfig v-if="activeName == 3" />
      <StageConfig v-if="activeName == 4" />
    </el-tabs>
  </ContentWrap>
</template>

<script setup>
import TagConfig from './compoents/tageConfig/index.vue'
import LevelConfig from './compoents/levelConfig/index.vue'
import FollowTypeConfig from './compoents/followTypeConfig/index.vue'
import StageConfig from './compoents/stageConfig/index.vue'
const activeName = ref(1)

const handleTabChange = (tab) => {
  activeName.value = tab
}
</script>

<style lang="scss" scoped></style>
